Skip to content

Conversation

the-phinet
Copy link
Contributor

@the-phinet the-phinet commented Apr 7, 2025

This commit set contains a number of fixes and changes. I can split them into multiple pull requests if you'd like

Fixes:

  • The deletion of temp folders 'deps' and 'aseprite' could result in loss of user data. This have been fixed by using a unique temp folder
  • The script cleans up after itself, even if it exits early
  • Any commands that touch the file system are checked for success, and will exit early if they fail. This addresses Error handling #4

Changes:

  • Moved the output folder to the location specified by XDG
  • Added aseprite to the user's path for command line execution
  • Script now automatically installs the official desktop file

INSTALL_DIR="${XDG_DATA_HOME}/aseprite"
BINARY_DIR="${HOME}/.local/bin"
LAUNCHER_DIR="${XDG_DATA_HOME}/applications"
ICON_DIR="${XDG_DATA_HOME}/icons"
Copy link
Owner

@mak448a mak448a Aug 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to put this into hicolor to get it to work? I'm currently compiling Aseprite with your version so I wouldn't know lol

Copy link
Contributor Author

@the-phinet the-phinet Aug 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I believe you are correct.

While it seems to be working on my end, we should probably move it to "${XDG_DATA_HOME}/icons/hicolor/256x256/apps"

When I get a chance, I'll check what icons aseprite distributes, other than the 256 version

Edit: It works on my pc, because my icon theme (papyrus) comes with an aseprite icon

Edit 2: Yeah, they distribute other sizes, too. I'll fix the script in a bit

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It also seems to be working on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants